home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / graphics / a-g / fractalcomp / usage < prev   
Encoding:
Text File  |  1994-03-12  |  1.6 KB  |  65 lines

  1.  
  2. This is a very brief note on usage of enc.c and dec.c.
  3.  
  4. FILE TYPE:
  5.  
  6. First, the input file to enc must be raw bytes which are not
  7. references into a color lookup table. The image size must
  8. be even. A typical calling sequence for a 256x256 image is:
  9.  
  10. enc -t 10 infile.raw outfile.trn
  11.  
  12.  
  13.  
  14. THE TOLERANCE FLAG:
  15.  
  16. A range of 4-20 is reasonable for the -t flag, with small values
  17. giving good fidelity at poor compression and vice versa. 
  18.  
  19.  
  20.  
  21. INPUT IMAGE SIZE:
  22.  
  23. The -M flag controls the size of the smallest image pieces that are
  24. compared for self similarity. The following table gives the value
  25. that should be used:
  26.  
  27. Smallest Input Image Dimension                  -M value
  28. --------------------------------------------------------
  29.    128                                            5
  30.    256                                            6 (default)
  31.    512                                            7 
  32. etc.
  33.  
  34. Using too large a -M will cause the program to warn you that it 
  35. doesn't make sense to do that (the resulting compression will
  36. be poor); using too small a -M flag will cause the resulting fidelity
  37. to be poor (often, but not always). 
  38.  
  39. For (say) 512x512 images the calling sequence is:
  40.  
  41. enc -t 10 -M 7 -w 512 infile.raw outfile.trn
  42.  
  43. The -M flags should probably be automatic; oh well. 
  44.  
  45. DECODING: 
  46.  
  47. The decoding call is:
  48.  
  49. dec outfile.trn outfile.out
  50.  
  51. which creates a raw byte image outfile.out. 
  52.  
  53. The outputfile can be scaled with the -f flag. 
  54.  
  55. dec -f 2 outfile.trn outfile.out 
  56.  
  57. will result in an outputfile that is twice as big as the 
  58. input. 
  59.  
  60. -----
  61.  
  62. Good luck; thanks for your interest. 
  63. Yuval Fisher
  64. yfisher@ucsd.edu
  65.